home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Auge 4000 / Auge 4000 #17 (1988-04-01)(Amiga User Gruppe Einzugsgebiet 4000).zip / Auge 4000 #17 (1988-04-01)(Amiga User Gruppe Einzugsgebiet 4000).adf / DrunkenMouse / handlerinterface.asm < prev    next >
Assembly Source File  |  1996-12-24  |  723b  |  25 lines

  1.  
  2. *************************************************************************
  3. *   HandlerInterface()
  4. *
  5. *   This code is needed to convert the calling sequence performed by
  6. *   the input.task for the input stream management into something
  7. *   that a C program can understand.
  8. *
  9. *   This routine expects a pointer to an InputEvent in A0, a pointer
  10. *   to a data area in A1.  These values are transferred to the stack
  11. *   in the order that a C program would need to find them.  Since the
  12. *   actual handler is written in C, this works out fine. 
  13.  
  14.     XREF        _InputHandler
  15.     XDEF        _HandlerInterface
  16.  
  17. _HandlerInterface:
  18.     MOVEM.L     A0/A1,-(A7)
  19.     JSR         _InputHandler
  20.     ADDQ.L      #8,A7
  21.     RTS
  22.  
  23.     END
  24.  
  25.